<%@ page import="java.util.Objects" %>
<%@ page import="java.util.Optional" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
    Object username = session.getAttribute("username");
    if (Objects.isNull(username)){
        response.sendRedirect("Login.jsp");
    }
%>
<!DOCTYPE html>
<html>
<head>
    <title>网站留言板</title>
    <style>
        .container{
            display: flex;
            justify-content: center;
            width: 1200px;
            margin: 0 auto;
        }

        .c-l{
            margin-right: 10px;
            width: 60%;
            height: 700px;
            overflow-y: auto;
        }

        .c-r{
            width: 35%;
            height: 400px;
        }

        .c-r-i{
            width: 100%;
            height: 300px;
        }
    </style>
</head>
<body>
    <div class="container">
        <iframe src="MessageShow.jsp" class="c-l"></iframe>
        <div class="c-r">
            <iframe src="Input.jsp" class="c-r-i"></iframe>
            <div style="text-align: right">
                <a href="Mine.jsp" target="_blank">查看留言</a>
            </div>
        </div>
    </div>
</body>
</html>